package com.wmh.baseservice.merchant.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import java.util.Arrays;
import java.util.ArrayList;

/**
 * @author wmh generator
 * @since 2022-12-09
 */
@ApiModel(value="MerchantVegetablePlot对象", description="商家菜/果地表")
public class MerchantVegetablePlot implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "状态:	0未完善信息 1已完善")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "版本号")
    @Version
    private Integer version;

    private Date createTime;

    private Date updateTime;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区/镇")
    private String area;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "经度")
    private String lat;

    @ApiModelProperty(value = "维度")
    private String lng;

    @ApiModelProperty(value = "菜地名称")
    private String plotName;

    @ApiModelProperty(value = "简介")
    private String overview;

    @ApiModelProperty(value = "详情")
    private String content;

    @ApiModelProperty(value = "所属人名称")
    private String name;

    @ApiModelProperty(value = "联系方式")
    private String phone;

    @ApiModelProperty(value = "菜地类型1公开 2私有")
    private Integer openType;

    @ApiModelProperty(value = "摘菜开放时间")
    private String pickOpenTime;

    @ApiModelProperty(value = "摘菜关闭时间")
    private String pickOverTime;

    @ApiModelProperty(value = "0只可摘菜 1只可种菜 2全支持")
    private Integer businessType;

    @ApiModelProperty(value = "当前可种菜人数(商家一次设置足够人数，当人数不足时小程序提示，商家自行到后台补充)")
    private Integer growCount;

    @ApiModelProperty(value = "种菜开放时间")
    private String growOpenTime;

    @ApiModelProperty(value = "种菜关闭时间")
    private String growOverTime;

    @ApiModelProperty(value = "总长")
    private Double lon;

    @ApiModelProperty(value = "总宽")
    private Double wide;

    @ApiModelProperty(value = "亩")
    private Double mu;

    @ApiModelProperty(value = "主图")
    private String avatar;

    @ApiModelProperty(value = "背景图")
    private String banner;

    @ApiModelProperty(value = "路径id")
    private Long urlId;

    @ApiModelProperty(value = "标签")
    private String label;

    @ApiModelProperty(value = "申请该土地的商家id")
    private Long rawMerchantId;

    @ApiModelProperty(value = "租赁押金")
    private BigDecimal deposit;

    @ApiModelProperty(value = "分享海报(包含进入果蔬列表的二维码)")
    private String shareBanner;

    /**
     * 用户端距离
     */
    @TableField(exist = false)
    private String juli;

    public String getJuli() {
        return juli;
    }

    public void setJuli(String juli) {
        this.juli = juli;
    }
    public Long getId() {
        return id;
    }

    public MerchantVegetablePlot setId(Long id) {
        this.id = id;
        return this;
    }
    public Integer getStatus() {
        return status;
    }

    public MerchantVegetablePlot setStatus(Integer status) {
        this.status = status;
        return this;
    }
    public String getRemark() {
        return remark;
    }

    public MerchantVegetablePlot setRemark(String remark) {
        this.remark = remark;
        return this;
    }
    public Integer getVersion() {
        return version;
    }

    public MerchantVegetablePlot setVersion(Integer version) {
        this.version = version;
        return this;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public MerchantVegetablePlot setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public MerchantVegetablePlot setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }
    public String getProvince() {
        return province;
    }

    public MerchantVegetablePlot setProvince(String province) {
        this.province = province;
        return this;
    }
    public String getCity() {
        return city;
    }

    public MerchantVegetablePlot setCity(String city) {
        this.city = city;
        return this;
    }
    public String getArea() {
        return area;
    }

    public MerchantVegetablePlot setArea(String area) {
        this.area = area;
        return this;
    }
    public String getAddress() {
        return address;
    }

    public MerchantVegetablePlot setAddress(String address) {
        this.address = address;
        return this;
    }
    public String getLat() {
        return lat;
    }

    public MerchantVegetablePlot setLat(String lat) {
        this.lat = lat;
        return this;
    }
    public String getLng() {
        return lng;
    }

    public MerchantVegetablePlot setLng(String lng) {
        this.lng = lng;
        return this;
    }
    public String getPlotName() {
        return plotName;
    }

    public MerchantVegetablePlot setPlotName(String plotName) {
        this.plotName = plotName;
        return this;
    }
    public String getOverview() {
        return overview;
    }

    public MerchantVegetablePlot setOverview(String overview) {
        this.overview = overview;
        return this;
    }
    public String getContent() {
        return content;
    }

    public MerchantVegetablePlot setContent(String content) {
        this.content = content;
        return this;
    }
    public String getName() {
        return name;
    }

    public MerchantVegetablePlot setName(String name) {
        this.name = name;
        return this;
    }
    public String getPhone() {
        return phone;
    }

    public MerchantVegetablePlot setPhone(String phone) {
        this.phone = phone;
        return this;
    }
    public Integer getOpenType() {
        return openType;
    }

    public MerchantVegetablePlot setOpenType(Integer openType) {
        this.openType = openType;
        return this;
    }
    public String getPickOpenTime() {
        return pickOpenTime;
    }

    public MerchantVegetablePlot setPickOpenTime(String pickOpenTime) {
        this.pickOpenTime = pickOpenTime;
        return this;
    }
    public String getPickOverTime() {
        return pickOverTime;
    }

    public MerchantVegetablePlot setPickOverTime(String pickOverTime) {
        this.pickOverTime = pickOverTime;
        return this;
    }
    public Integer getBusinessType() {
        return businessType;
    }

    public MerchantVegetablePlot setBusinessType(Integer businessType) {
        this.businessType = businessType;
        return this;
    }
    public Integer getGrowCount() {
        return growCount;
    }

    public MerchantVegetablePlot setGrowCount(Integer growCount) {
        this.growCount = growCount;
        return this;
    }
    public String getGrowOpenTime() {
        return growOpenTime;
    }

    public MerchantVegetablePlot setGrowOpenTime(String growOpenTime) {
        this.growOpenTime = growOpenTime;
        return this;
    }
    public String getGrowOverTime() {
        return growOverTime;
    }

    public MerchantVegetablePlot setGrowOverTime(String growOverTime) {
        this.growOverTime = growOverTime;
        return this;
    }
    public Double getLon() {
        return lon;
    }

    public MerchantVegetablePlot setLon(Double lon) {
        this.lon = lon;
        return this;
    }
    public Double getWide() {
        return wide;
    }

    public MerchantVegetablePlot setWide(Double wide) {
        this.wide = wide;
        return this;
    }
    public Double getMu() {
        return mu;
    }

    public MerchantVegetablePlot setMu(Double mu) {
        this.mu = mu;
        return this;
    }
    public String getAvatar() {
        return avatar;
    }

    public MerchantVegetablePlot setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }
    public String getBanner() {
        return banner;
    }

    public MerchantVegetablePlot setBanner(String banner) {
        this.banner = banner;
        return this;
    }
    public Long getUrlId() {
        return urlId;
    }

    public MerchantVegetablePlot setUrlId(Long urlId) {
        this.urlId = urlId;
        return this;
    }
    public String getLabel() {
        return label;
    }

    public MerchantVegetablePlot setLabel(String label) {
        this.label = label;
        return this;
    }
    public Long getRawMerchantId() {
        return rawMerchantId;
    }

    public MerchantVegetablePlot setRawMerchantId(Long rawMerchantId) {
        this.rawMerchantId = rawMerchantId;
        return this;
    }
    public BigDecimal getDeposit() {
        return deposit;
    }

    public MerchantVegetablePlot setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
        return this;
    }
    public String getShareBanner() {
        return shareBanner;
    }

    public MerchantVegetablePlot setShareBanner(String shareBanner) {
        this.shareBanner = shareBanner;
        return this;
    }

    public static final String ID = "id";

    public static final String STATUS = "status";

    public static final String REMARK = "remark";

    public static final String VERSION = "version";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String PROVINCE = "province";

    public static final String CITY = "city";

    public static final String AREA = "area";

    public static final String ADDRESS = "address";

    public static final String LAT = "lat";

    public static final String LNG = "lng";

    public static final String PLOT_NAME = "plot_name";

    public static final String OVERVIEW = "overview";

    public static final String CONTENT = "content";

    public static final String NAME = "name";

    public static final String PHONE = "phone";

    public static final String OPEN_TYPE = "open_type";

    public static final String PICK_OPEN_TIME = "pick_open_time";

    public static final String PICK_OVER_TIME = "pick_over_time";

    public static final String BUSINESS_TYPE = "business_type";

    public static final String GROW_COUNT = "grow_count";

    public static final String GROW_OPEN_TIME = "grow_open_time";

    public static final String GROW_OVER_TIME = "grow_over_time";

    public static final String LON = "lon";

    public static final String WIDE = "wide";

    public static final String MU = "mu";

    public static final String AVATAR = "avatar";

    public static final String BANNER = "banner";

    public static final String URL_ID = "url_id";

    public static final String LABEL = "label";

    public static final String RAW_MERCHANT_ID = "raw_merchant_id";

    public static final String DEPOSIT = "deposit";

    public static final String SHARE_BANNER = "share_banner";

    @Override
    public String toString() {
        return "MerchantVegetablePlot{" +
            "id=" + id +
            ", status=" + status +
            ", remark=" + remark +
            ", version=" + version +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", province=" + province +
            ", city=" + city +
            ", area=" + area +
            ", address=" + address +
            ", lat=" + lat +
            ", lng=" + lng +
            ", plotName=" + plotName +
            ", overview=" + overview +
            ", content=" + content +
            ", name=" + name +
            ", phone=" + phone +
            ", openType=" + openType +
            ", pickOpenTime=" + pickOpenTime +
            ", pickOverTime=" + pickOverTime +
            ", businessType=" + businessType +
            ", growCount=" + growCount +
            ", growOpenTime=" + growOpenTime +
            ", growOverTime=" + growOverTime +
            ", lon=" + lon +
            ", wide=" + wide +
            ", mu=" + mu +
            ", avatar=" + avatar +
            ", banner=" + banner +
            ", urlId=" + urlId +
            ", label=" + label +
            ", rawMerchantId=" + rawMerchantId +
            ", deposit=" + deposit +
            ", shareBanner=" + shareBanner +
        "}";
    }

    public final static String[] getFields(String ...noField){
        List<String> list = new ArrayList<>(Arrays.asList(
            MerchantVegetablePlot.ID
            ,MerchantVegetablePlot.STATUS
            ,MerchantVegetablePlot.REMARK
            ,MerchantVegetablePlot.VERSION
            ,MerchantVegetablePlot.CREATE_TIME
            ,MerchantVegetablePlot.UPDATE_TIME
            ,MerchantVegetablePlot.PROVINCE
            ,MerchantVegetablePlot.CITY
            ,MerchantVegetablePlot.AREA
            ,MerchantVegetablePlot.ADDRESS
            ,MerchantVegetablePlot.LAT
            ,MerchantVegetablePlot.LNG
            ,MerchantVegetablePlot.PLOT_NAME
            ,MerchantVegetablePlot.OVERVIEW
            ,MerchantVegetablePlot.CONTENT
            ,MerchantVegetablePlot.NAME
            ,MerchantVegetablePlot.PHONE
            ,MerchantVegetablePlot.OPEN_TYPE
            ,MerchantVegetablePlot.PICK_OPEN_TIME
            ,MerchantVegetablePlot.PICK_OVER_TIME
            ,MerchantVegetablePlot.BUSINESS_TYPE
            ,MerchantVegetablePlot.GROW_COUNT
            ,MerchantVegetablePlot.GROW_OPEN_TIME
            ,MerchantVegetablePlot.GROW_OVER_TIME
            ,MerchantVegetablePlot.LON
            ,MerchantVegetablePlot.WIDE
            ,MerchantVegetablePlot.MU
            ,MerchantVegetablePlot.AVATAR
            ,MerchantVegetablePlot.BANNER
            ,MerchantVegetablePlot.URL_ID
            ,MerchantVegetablePlot.LABEL
            ,MerchantVegetablePlot.RAW_MERCHANT_ID
            ,MerchantVegetablePlot.DEPOSIT
            ,MerchantVegetablePlot.SHARE_BANNER
        ));
        list.removeAll(new ArrayList<>(Arrays.asList(noField)));
        return list.toArray(new String[0]);
    }
}